import { TUser } from "./../entities/testTable.entity";
import { OmitType } from "@nestjs/swagger";
import { IsNumber, IsOptional, IsString } from "class-validator";
import { PaginationDto } from "src/common/dto/pagination.dto";

export class ReqProTableDto extends PaginationDto {
  // 用户姓名
  @IsOptional()
  @IsString()
  t_user_name?: string;

  // 性别
  @IsOptional()
  @IsString()
  t_gender?: string;

  // 状态
  @IsOptional()
  t_status?: number;
}

// 新增dto
export class ReqAddUserDto extends OmitType(TUser, ["t_user_id"] as const) {}
